import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const LES: AppRouteRecordRaw = {
  path: '/les',
  name: 'AGV调度',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.les',
    requiresAuth: true,
    ignoreCache: false,
    icon: 'icon-robot',
    order: 6,
  },
  children: [
    // {
    //   path: 'agvInventory',
    //   name: '库位管理',
    //   component: () => import('@/views/les/list/agv-inventory/index.vue'),
    //   meta: {
    //     locale: 'les.agv.inventory',
    //     requiresAuth: true,
    //     ignoreCache: false,
    //     roles: ['*'],
    //     order: 1,
    //   },
    // },
    // {
    //   path: 'emptyInventory',
    //   name: '空车库区货位',
    //   component: () => import('@/views/les/list/empty-inventory/index.vue'),
    //   meta: {
    //     locale: 'les.empty.inventory',
    //     requiresAuth: true,
    //     ignoreCache: false,
    //     roles: ['*'],
    //     order: 1,
    //   },
    // },
    {
      path: 'shippingSchedule',
      name: '配送计划',
      component: () => import('@/views/les/list/shipping-schedule/index.vue'),
      meta: {
        locale: 'les.shipping.schedule',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
        order: 3,
      },
    },
    // {
    //   path: 'agvTask',
    //   name: 'AGV任务管理',
    //   component: () => import('@/views/les/list/agv-task/index.vue'),
    //   meta: {
    //     locale: 'les.agv.task',
    //     requiresAuth: true,
    //     ignoreCache: false,
    //     roles: ['*'],
    //     order: 4,
    //   },
    // },
    // {
    //   path: 'vehicleInventory',
    //   name: 'AGV小车管理',
    //   component: () => import('@/views/les/list/vehicle-inventory/index.vue'),
    //   meta: {
    //     locale: 'les.vehicle.inventory',
    //     requiresAuth: true,
    //     ignoreCache: false,
    //     roles: ['*'],
    //     order: 5,
    //   },
    // },
    {
      path: 'carDetail',
      name: '小车详情',
      component: () => import('@/views/les/list/car-detail/index.vue'),
      meta: {
        locale: 'les.car.detail',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
        order: 5,
      },
    },
    {
      path: 'carTask',
      name: '调度任务',
      component: () => import('@/views/les/list/car-task/index.vue'),
      meta: {
        locale: 'les.car.task',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
        order: 5,
      },
    },
    {
      path: '/materialVehicle-displayScreen',
      name: '料车显示屏',
      component: {
        template: `<iframe src="/materialVehicle-displayScreen/index.html" style="width:100%; height:100%; border:none;"></iframe>`,
      },
      meta: {
        locale: 'reportBoard.MaterialVehicleDisplayScreen',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
      },
    },
    {
      path: 'manualExecution',
      name: '手动执行',
      component: () => import('@/views/les/list/manual-execution/index.vue'),
      meta: {
        locale: 'les.manualExecution',
        requiresAuth: true,
        ignoreCache: false,
        roles: ['*'],
        order: 5,
      },
    },
  ],
};

export default LES;
